home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tex
/
macros
/
source
/
base
/
fntguide.tex
/
node28_mn.html
< prev
next >
Wrap
Text File
|
1995-03-15
|
3KB
|
50 lines
<H2><A ID="SECTION00063000000000000000">
Default definitions</A>
</H2><FONT SIZE="+4"><I>
<#701#>1994/12/01<#701#>
The commands in <#702#>ENC<#702#>|enc.def| files allow encoding-specific
commands to be defined, but they do not allow commands to be used in
other encodings. For example, the OMS encoding contains the symbol
`§', but we need to be able to use the command |§| in any encoding,
not just OMS.
To allow this, L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X<#703#><#703#> has commands for giving default definitions
for commands, which are used when the command is not defined in the
current encoding. For example, the default encoding for |§| is OMS,
and so in an encoding (such as OT1) which does not contain |§|, the
OMS version is selected. But in an encoding (such as T1) which does
contain |§|, the version for that encoding is used.
<B>Note</B> these commands should <B>not</B> occur in
<#706#>ENC<#706#>|enc.def| files, since these should only define commands
for that encoding. They should instead be placed in packages.
<#707#>decl<#707#>[1994/12/01]
|| <#708#>cmd<#708#> <#709#>definition<#709#>
<BR>This command allows an encoding-specific command to be given a default
definition. For example, the default definition for |©| is
defined be be a circled `c' with:
<#711#>tex2html_preform<#711#><tex2html_verbatim_mark>verbatim71#<#713#>decl<#713#>[1994/12/01]
|| <#714#>cmd<#714#> <#715#>encoding<#715#>
<BR> || <#716#>cmd<#716#> <#717#>encoding<#717#>
These commands allow an encoding-specific command to be given a
default encoding. For example, the default encoding for ||̈ and
|æ| is set to be OT1 by:
<#719#>tex2html_preform<#719#><tex2html_verbatim_mark>verbatim72#Note that || can be used on any one-argument
encoding-specific command, not just those defined with
||. Similarly, || can be used
on any encoding-specific command with no arguments, not just those
defined with ||.
For more examples of these definitions, see |ltoutenc.dtx|.
<#721#>decl<#721#>[1994/12/01]
|| <#722#>cmd<#722#> <#723#>definition<#723#>
This command is the same as ||, except that if
the command already has a default definition, then the definition is
ignored. This is useful to give `faked' definitions of symbols which may
be given `real' definitions by other packages. For example, a package
might give a fake definition of |¼| by saying:
<#725#>tex2html_preform<#725#><tex2html_verbatim_mark>verbatim73#</I></FONT>